package com.xrh.xdemo.service.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Builder;
import lombok.Data;
import lombok.experimental.Tolerate;


/**
* 角色菜单关联
*/
@Data
@TableName(value = "role_vs_menu" , autoResultMap = true)
@Builder
public class RoleVsMenuEntity  implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
    /**主键id */
	@JsonFormat(shape = JsonFormat.Shape.STRING)
	@TableId(value="id" ,type = IdType.ASSIGN_ID)
	private Long id;

	/**角色id */
	@TableField("sys_role_id")
	private Long sysRoleId;

	/**菜单id */
	@TableField("menu_id")
	private Long menuId;

    @Tolerate
    public RoleVsMenuEntity(){}
}
